﻿/*****************************************************************************  

 Version: 0.1
 Website: http://www.visuagile.com/
 
 Copyright (c) Yoganand R. All rights reserved.
 For continued development and updates, visit http://yogsbreath.net
 
 ******************************************************************************/

using System;
using System.Collections;
using System.Collections.Generic;
using NHibernate;
using Spring.Data.NHibernate.Support;

using VisualAgile.IDAL;
using VisualAgile.Model;
using Spring.Data.NHibernate;
using NHibernate.Engine;
using System.Linq;
using System.Linq.Expressions;


namespace VisualAgile.DAL
{
    public class IterationDao : BaseDao<Iteration>, IIterationDao
    {

        protected override HibernateTemplate getBaseDAO()
        {
            return HibernateTemplate;
        }

        public IList FindByRelease(Guid ReleaseId)
        {
            return HibernateTemplate.Find("from Iteration where ReleaseID = ? order by PeriodFrom", ReleaseId);            
        }       
    }
}
